package com.ruoyi.web.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName(value = "mes_produce_product")
public class ProduceProduct {
    @TableId
    private String productId;
    private String orderProductId;
    private String produceId;
    private String productNo;
    private String orderNo;
    private String orderId;
    private String bookName;
    private String breedType;
    private String sampleNo;
    private String bookNo;
    private String bookCode;
    private String paperName;
    private BigDecimal fixPrice;
    private String composition;
    private String printColor;
    private String paperSize;
    private String paperType;
    private String coverFilm;
    private String marking;
    private double lianbanCount;
    private String customerName;
    private String textPrinter;
    private Date component;
    private String subjectType;
    private Long produceCount;
    private Long produceCountYu;
    private String color;
    private String fileNo;
    private String paperNo;
    private String orderAmount;
    private String bookSize;
    private String kaoban;
    private String textPlateCount;
    private String breed;
    private String sheetSize;
    private String finishSize;
    private String detail;
    private String bindingMode;
    private double boardsCount;
    private double sheet;
    //@TableField(fill = FieldFill.INSERT)
    private String createBy;
    private Integer sort;//用于排序
    private String bindingStatus;
    private String isGj; // 是否过胶

    //@TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    //新版/旧版
    private String newPast;

    private String piece;
    private String pubNo;
    /** 关联的封面生产单下产品id*/
    private String produceIds;
    /** 关联的封面生产单编号*/
    private String produceNos;
    // 系统外封面
    private String systemOutFm;

    /** 机台id */
    @TableField(exist = false)
    private String machineId;

    /** 类型 1 半包 2 过胶 3 投本 */
    @TableField(exist = false)
    private String bindingType;

    /** 累计已上报数量 */
    @TableField(exist = false)
    private BigDecimal totalNum;

    /** 最大允许上报数量 */
    @TableField(exist = false)
    private BigDecimal maxNum;

    /** 装订完成数量 */
    @TableField(exist = false)
    private BigDecimal completeCount;
    /** 加减标识 */
    @TableField(exist = false)
    public Long type;
}
